/*
 * @Author: zhangyang
 * @Date: 2024-01-12 16:25:23
 * @LastEditTime: 2024-01-12 16:50:46
 * @Description:
 */
export function fillSlash(path: string) {
  if (path === '/')
    return path

  return path.endsWith('/index.html') ? path : `${path}/index.html`
}
